package day240425.work;

public class Sum {
    public static void main(String[] args) {
        System.out.println(a(30));
    }
    public static int a(int b){
        //设置退出条件
        if (b==0||b==1)return 1;
        //完成递归
        return b*a(b-1);
    }

}
